import request from '@/utils/request'

// 查询调课信息列表
export function listTransfer(query) {
  return request({
    url: '/edu/transfer/list',
    method: 'get',
    params: query
  })
}

// 查询调课信息详细
export function getTransfer(transferId) {
  return request({
    url: '/edu/transfer/' + transferId,
    method: 'get'
  })
}

// 新增调课信息
export function addTransfer(data) {
  return request({
    url: '/edu/transfer',
    method: 'post',
    data: data
  })
}

// 修改调课信息
export function updateTransfer(data) {
  return request({
    url: '/edu/transfer',
    method: 'put',
    data: data
  })
}

// 删除调课信息
export function delTransfer(transferId) {
  return request({
    url: '/edu/transfer/' + transferId,
    method: 'delete'
  })
}

// 导出调课信息
export function exportTransfer(query) {
  return request({
    url: '/edu/transfer/export',
    method: 'get',
    params: query
  })
}